Platform Explorer / Nuxeo Platform 5.8

Component org.nuxeo.ecm.platform.routing.dashboard.contentviews

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.routing.dashboard.contentviews">

  <extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
    point="contentViews">

    <contentView name="routing_tasks">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType IN
          ('RoutingTask')
          AND ecm:isCheckedInVersion = 0 AND
          ecm:currentLifeCycleState !=
          'deleted' AND
          ecm:currentLifeCycleState != 'ended' AND ecm:isProxy = 0
        </pattern>
        <pageSize>20</pageSize>
      </coreQueryPageProvider>

      <showPageSizeSelector>true</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
      </refresh>
      <cacheSize>0</cacheSize>

      <resultLayouts>
        <layout name="routing_task_listing" />
      </resultLayouts>

      <selectionList>CURRENT_SELECTION</selectionList>

    </contentView>

    <contentView name="user_open_tasks">
      <showTitle>false</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <whereClause docType="user_open_tasks_cv">
          <predicate parameter="nt:processId" operator="LIKE">
            <field schema="user_open_tasks_cv" name="task_processId" />
          </predicate>
          <predicate parameter="nt:name" operator="ILIKE">
            <field schema="user_open_tasks_cv" name="task_name" />
          </predicate>
          <predicate parameter="nt:dueDate" operator="BETWEEN">
            <field schema="user_open_tasks_cv" name="task_dueDate_min" />
            <field schema="user_open_tasks_cv" name="task_dueDate_max" />
          </predicate>
          <fixedPart>
            ecm:mixinType IN ('RoutingTask') AND
            ecm:isCheckedInVersion = 0 AND
            ecm:currentLifeCycleState =
            'opened' AND ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>true</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentChanged</event>
        <event>documentCreated</event>
        <event>workflowTaskCompleted</event>
        <event>workflowNewProcessStarted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <searchLayout name="routing_user_open_task_search_layout"
        filterUnfolded="true" />
      <resultLayouts>
        <layout name="routing_user_open_task_listing" title=""
          translateTitle="" iconPath="" showCSVExport="false"
          showPDFExport="false" />
      </resultLayouts>
    </contentView>

    <contentView name="task_target_documents">
      <title>label.document.routing.participatingDocuments</title>
      <translateTitle>true</translateTitle>
      <showTitle>true</showTitle>
      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <parameter>#{routingTaskActions.getCurrentTask().getTargetDocumentsIds()}
        </parameter>
        <whereClause docType="Document">
          <fixedPart>
            ecm:uuid IN (?) AND ecm:isCheckedInVersion = 0 AND
            ecm:isProxy = 0
          </fixedPart>
        </whereClause>
        <pageSize>10</pageSize>
      </coreQueryPageProvider>
      <showFilterForm>false</showFilterForm>
      <showPageSizeSelector>false</showPageSizeSelector>
      <useGlobalPageSize>false</useGlobalPageSize>
      <refresh>
        <event>documentCreated</event>
        <event>documentChanged</event>
        <event>workflowTaskCompleted</event>
      </refresh>
      <cacheSize>10</cacheSize>
      <cacheKey>#{org.jboss.seam.core.manager.currentConversationId}
      </cacheKey>
      <resultLayouts>
        <layout name="task_related_documents_listing" title="document_listing"
          translateTitle="true" iconPath="/icons/document_listing_icon.png"
          showCSVExport="false" showPDFExport="false"
          showSyndicationLinks="false" />
      </resultLayouts>
    </contentView>
  </extension>

</component>